-
Notifications
You must be signed in to change notification settings - Fork 306
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
FISH-5645 Validity Checks on Client Certificates in the Trust Store #5427
Conversation
Signed-off-by: JamesHillyard <[email protected]>
Jenkins test please |
...ava/com/sun/enterprise/security/auth/realm/certificate/ClientCertificateExpiryValidator.java
Outdated
Show resolved
Hide resolved
...ava/com/sun/enterprise/security/auth/realm/certificate/ClientCertificateExpiryValidator.java
Outdated
Show resolved
Hide resolved
.../core/src/main/java/com/sun/enterprise/security/auth/realm/certificate/CertificateRealm.java
Outdated
Show resolved
Hide resolved
Signed-off-by: JamesHillyard <[email protected]>
Jenkins test please |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You haven't added the domain.xml changes to web profile.
Also adding default values in via domain.xml is discouraged where possible since it messes with upgrades
...ava/com/sun/enterprise/security/auth/realm/certificate/ClientCertificateExpiryValidator.java
Outdated
Show resolved
Hide resolved
Signed-off-by: JamesHillyard <[email protected]>
Jenkins test please |
...es/client-certificate-validator/src/main/java/fish.payara.samples.security/HelloServlet.java
Outdated
Show resolved
Hide resolved
Signed-off-by: JamesHillyard <[email protected]>
Jenkins test please |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
https://docs.oracle.com/javase/tutorial/java/package/namingpkgs.html
Package names are written in all lower case to avoid conflict with the names of classes or interfaces.
Rename to fish.payara.samples.security.client.validation
or fish.payara.samples.security.client_validation
(hyphens aren't allowed either).
...cate-validator/src/test/java/fish/payara/samples/security/clientValidation/MyKeyManager.java
Outdated
Show resolved
Hide resolved
Signed-off-by: JamesHillyard <[email protected]>
Jenkins test please |
FISH-5645 Validity Checks on Client Certificates in the Trust Store
A new improvement utilising the ClientCertificateValidator API with a default implementation checking for expired certificates being used in the trust store. An image of the log's warning is below.
Important Info
To prevent breaking changes this is enabled by default for community but will be disabled for Enterprise.
Testing
New tests
ClientValidationTest in the new client-certification-validation module of Payara-Samples adds an expired certificate to the trust store then attempts to make a connection to a test servlet using that expired certificate.
Testing Performed
Manually ran the test application from the JIRA and new Payara-Sample.
Testing Environment
JDK8, Maven 3.6.3, Windows 10
Documentation
Documentation PR: payara/Payara-Community-Documentation#253
Notes for Reviewers